<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <a id="i1" href="http://www.baidu.com">点击跳转，或5秒后自动跳转</a>

    <script>
//        function jump(){
//        	location='http://www.baidu.com';
//        }
//        setTimeout('jump()',5000)
        setTimeout('location="http://www.baidu.com"',3000)
    </script>
</body>
</html>